package com.example.teesystem.entity.vo.clazz;

import com.example.teesystem.common.valid.ValidErrorMessage;
import com.example.teesystem.common.valid.ValidId;
import com.example.teesystem.common.valid.ValidIds;
import lombok.Data;

import javax.validation.constraints.Min;
import java.util.List;

@Data
public class ClassUpdateVo {
    /**
     * key自增
     */
    @ValidId(message = ValidErrorMessage.CLASS_ID_VALID_FAIL)
    private Integer id;
    
    /**
     * 班级名称
     */
    private String className;
    
    /**
     * 课程id
     */
    @Min(value = 0, message = ValidErrorMessage.COURSE_ID_VALID_FAIL)
    private Integer courseId;
    
    /**
     * 开放进阶训练的章节
     */
    @ValidIds(message = ValidErrorMessage.CLASS_OPEN_VALID_FAIL)
    private List<Integer> open;
}
